﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatKit.aspx.cs" Inherits="PatKit" Title="PatKit List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Kit List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatKitDataSource"
				DataKeyNames="IdKit"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatKit.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="False" />
				<asp:BoundField DataField="DescripcionKit" HeaderText="Descripcion Kit" SortExpression="[DESCRIPCION_KIT]"  />
				<data:HyperLinkField HeaderText="Id Grupo Catalogo" DataNavigateUrlFormatString="PatGrupoCatalogoEdit.aspx?IdGrupoCatalogo={0}" DataNavigateUrlFields="IdGrupoCatalogo" DataContainer="IdGrupoCatalogoSource" DataTextField="DescripcionGrupoCatalogo" />
				<data:HyperLinkField HeaderText="Id Lista Precios" DataNavigateUrlFormatString="PatListaPreciosTallerEdit.aspx?IdListaPrecios={0}" DataNavigateUrlFields="IdListaPrecios" DataContainer="IdListaPreciosSource" DataTextField="DescripcionListaPrecios" />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatKit Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<%--<asp:Button runat="server" ID="btnPatKit" OnClientClick="javascript:location.href='PatKitEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>--%>
		<asp:Button runat="server" ID="btnPatKit" OnClientClick="javascript:location.href='../tal02/ConfiguracionKits.aspx?mode=0'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatKitDataSource ID="PatKitDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatKitProperty Name="PatGrupoCatalogo"/> 
					<data:PatKitProperty Name="PatListaPreciosTaller"/> 
					<%--<data:PatKitProperty Name="IdItemInventarioPatItemInventarioCollection_From_PatKitItem" />--%>
					<%--<data:PatKitProperty Name="PatKitOperacionCollection" />--%>
					<%--<data:PatKitProperty Name="PatKitItemCollection" />--%>
					<%--<data:PatKitProperty Name="PatOrdenTrabajoKitCollection" />--%>
					<%--<data:PatKitProperty Name="PatCitaTallerCollection" />--%>
					<%--<data:PatKitProperty Name="PatMantenimientoProgramadoCollection" />--%>
					<%--<data:PatKitProperty Name="IdGrupoCatalogoPatGrupoCatalogoCollection_From_PatMantenimientoProgramado" />--%>
					<%--<data:PatKitProperty Name="IdDocumentoNumeroOrdenPatOrdenTrabajoCollection_From_PatOrdenTrabajoKit" />--%>
					<%--<data:PatKitProperty Name="IdOperacionPatTemparioCollection_From_PatKitOperacion" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatKitDataSource>
	    		
</asp:Content>



